package com.xlserver.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("consultation_photo_history")
public class Photo {
    @TableId("hid")
    private Integer hid;

    @TableField("hPhotoMessage")
    private String photo;

    @TableField("hPhotoTime")
    private Date time;

    @TableField("hSenderId")
    private int senderId;

    @TableField("hReceiverId")
    private int receiverId;

    public Photo(){}

    public Photo(int senderId, int receiverId, int hid, String photo) {
        this.setPhoto(photo);
        this.setReceiverId(receiverId);
        this.setSenderId(senderId);
        this.setHid(hid);
    }
}
